package itdfq.dfq.Behavior_Patters.Template;

/**
 * @Author GocChin
 * @Date 2021/5/25 11:18
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210111  段方钦");
        String exp = "8+8";
        AbstractCalculator cal = (AbstractCalculator) XMLUtil.getBean();
        int result = cal.calculate(exp, "\\+");
        System.out.println(exp+"="+result);
    }
}
